package net.example.model.event;

import com.oraycn.esframework.core.ClientType;

import net.example.model.CommunicateMediaType;
import net.example.model.CommunicateType;

import java.io.Serializable;

/**
 * Created by ZN on 2015/12/4.
 */
public class CallEvent  implements Serializable {
    public String target;
    public CommunicateMediaType mediaType;
    public CommunicateType communicateType;

    public ClientType clientType;
    public int messageType;
    public String Tag;
    public boolean isEcho;
    public CallEvent(String destUserID, ClientType clientType, int messageType, CommunicateMediaType mediaType, CommunicateType communicateType,boolean isEcho,String tag) {
        this.target = destUserID;
        this.mediaType = mediaType;
        this.communicateType = communicateType;
        this.clientType = clientType;
        this.messageType = messageType;
        this.isEcho = isEcho;
        this.Tag=tag;
    }

    public String getTagetLoginID() {
        return this.clientType.ordinal() + "#" + this.target;
    }
}